﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using AspNetCs.Model;

namespace AspNetCs.IDAL
{

    public interface IAncestralHallBBS
    {
        /// <summary>
        /// 添加宗祠论坛
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Add(AncestralHallBBS_Model model);

        /// <summary>
        /// 修改宗祠论坛
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Update(AncestralHallBBS_Model model);

        /// <summary>
        /// 删除宗祠论坛(物理删除)
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int Delete(int id);

        /// <summary>
        /// 删除宗祠论坛(逻辑删除)
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int Hidden(int id);



        /// <summary>
        /// 通过宗祠编号查询宗祠论坛
        /// </summary>
        /// <param name="CreateId">宗祠编号</param>
        /// <param name="RequeryItems">查询的字段</param>
        /// <param name="IsDel">是否查询的被删除的信息 0:没有删除的 1:删除了的 2:所有的</param>
        /// <returns></returns>
        DataTable getAncestralHallBBSByAncestralHallId(int id, string RequeryItems, int IsDel);


        /// <summary>
        /// 修改宗祠论坛顶部
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int UpdateTopContent(AncestralHallBBS_Model model);


        /// <summary>
        /// 修改宗祠论坛底部
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int UpdateBottomContent(AncestralHallBBS_Model model);


        DataTable GetDataTable(string filter);
    }
}
